/*
 * net_addressing.h
 *
 *  Created on: 2023年7月22日
 *      Author: mcealt_DS
 */
#ifndef NET_ADDRESSING_H_
#define NET_ADDRESSING_H_
#include "stdbool.h"
#include "stdint.h"

#define xCONFIG_LOG_NET_ADDRESSING 

#define ADDRESS_HUB          0x00   //网关地址
#define ADDRESS_BROADCAST    0xFF  //广播地址

#define PANID_MAX             0xFFFFFF
#define SYSTEMID_MAX             0xFFFFFF

//读取本设备panid
uint32_t readThisPanId(void);
// 判断是否与本设备的panid一样
bool net_addressing_check_panId(uint32_t panId);


//读取本设备的systemid
uint32_t readThisSystemId(void);
bool net_addressing_check_sysId(uint32_t systemid);

#endif /*NET_ADDRESSING_H_*/
